﻿package net.wangit.framework.validation;

import net.wangit.LabelUtil;
import net.wangit.context.ActionContext;
import net.wangit.util.Checker;

public class TimeValidator extends DateValidator
{

	public TimeValidator()
	{
	}

	public String validate(ActionContext ac, String value, String expression, int rowIndex)
	{
		if (Checker.isEmpty(value))
			return null;
		if (!Checker.isTime(value))
			return LabelUtil.get(ac, "system", "validation.invalid_time");
		else
			return null;
	}
}
